const express = require('express')
/** 检查权限
 * @description: 
 * @param {Number} 级别
 * @param {String} 调用类型 
 * @return 相应结果
 */


checkAuthority = function (session,action){
 if(action == 'article'){
   var check ='　｜ <label class="control-label">置顶：</label> '+
   '<input type="checkbox" name="top" class="js-switch_3" value="true"/>　｜'+
   '<label class="control-label">精华：</label>' +
   '<input type="checkbox" name="good" class="js-switch_3" value="true" />'
   if(session.level>=1){//检查权限
     check =''
   }
   return check
}

}








module.exports = checkAuthority